#include <stdio.h>
#include <errno.h>

int main(void)
{
    printf("CHANGE 1");
    printf("change 2.7.1");
    printf("change 2.8.1");
    
	FILE *fp;
	char ch;
	
	fp=fopen("test.txt","w");

	if(fp == NULL)
	{
		printf("%d",errno);
	}
	printf("Please input something('#' to quit):\n");
  
	ch = getchar();
	ch = getchar();

	while(ch!='#')
	{
		fputc(ch,fp);
		putchar(ch);
		ch = getchar();
	}
	
	fclose(fp);
    
    printf("change 2.7.2");
	
	return 0;
}